<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    main {
      scroll-snap-type: y mandatory;
      overflow: scroll;
      height: 100vh;
    }

    section {
      width: 100vw;
      height: 100vh;
      scroll-snap-align: start;
      font-size: xx-large;
      text-align: center;
      line-height: 100vh;
      background-color: blanchedalmond;
      border-bottom: 1px solid black;
    }
  </style>
</head>

<body>
  <main>
    <section>页面内容1</section>
    <section>页面内容2</section>
    <section>页面内容3</section>
    <section>页面内容4</section>
  </main>
</body>

</html>